package com.shareroad.dubboweb.frame.config;

import java.io.IOException;
import java.util.Properties;

import com.shareroad.dubboweb.frame.base.Constants;

public class DubboClientPath {
	private static String uploadPath;
	static {
		Properties config = new Properties(); 
		try {
			config.load(Thread.currentThread().getContextClassLoader()
					.getResource(Constants.CONFIG_FILE_NAME).openStream());
			uploadPath = config.getProperty(Constants.DUBBO_CLIENT_PATH_KEY);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getUploadPath(){
		return uploadPath;
	}
	
	
	public static void main(String[] args){
		System.out.println(DubboClientPath.getUploadPath());
	}
	
	
	
}
